/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 *
 * @author Joris.Lefever
 */
public class Kok implements Runnable{
    private Stapel stapel;
    public Kok(Stapel stapel) {
    this.stapel = stapel;
    }
    @Override
    public void run() {
        for (int i = 0; i != 100; i++) {
            stapel.voegPannenkoekToe();
            try {
                Thread.sleep(10);
            } catch (InterruptedException ex) {
                System.err.println(ex);
            }
        }
    }
    
}
